package com.wu.gumomallware.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wu.common.utils.PageUtils;
import com.wu.gumomallware.ware.entity.WareSkuEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author wu
 * @email 2195361340@qq.com
 * @date 2022-12-12 18:37:49
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
     * 添加库存
     *
     * @param skuId
     * @param wareId
     * @param skuName
     * @param skuNum
     */
    void addStock(Long skuId, Long wareId, String skuName, Integer skuNum);

    Map<Long, Boolean> getHaveStockBySkuIds(List<Long> ids);
}

